//
//  XMLProcess.h
//  TestPhotoMS
//
//  Created by Hung Nguyen Thanh on 10/9/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Photo.h"

@protocol XMLProcessDelegate;

@interface XMLProcess : NSObject <NSXMLParserDelegate>
{
    NSXMLParser *parser; 
    NSString *currentElement;
    NSMutableArray *data;
    NSString *currentImage;
    Photo *currentPhoto;
}
@property (nonatomic, assign) id<XMLProcessDelegate>XMLDelegate;
- (void)parserXMLWithURL:(NSString *)URLStr;
@end

@protocol XMLProcessDelegate <NSObject>

- (void)haveGetNewImage:(Photo *)newPhoto;
- (void)getCompleteImage:(NSArray*)listPhoto;

@end